package top.zhangjianyong.blog.portal.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.zhangjianyong.blog.params.timeline.TimeLineListParam;
import top.zhangjianyong.blog.response.ApiResponse;
import top.zhangjianyong.blog.service.TimeLineService;

/**
 * @author zhangjianyong
 * @since 2025/5/20 14:19
 */
@RequestMapping("/portal/timeline")
@RestController("portalTimelineController")
public class TimelineController {

  private final TimeLineService timeLineService;

  public TimelineController(TimeLineService timeLineService) {
    this.timeLineService = timeLineService;
  }

  @PostMapping("/list")
  public ApiResponse list(TimeLineListParam param) {
    return timeLineService.list(param);
  }
}
